package org.halo.trade.data.sina;



public class SimpleLevel
{
	public String symbol;// 证券代码
	public String name;

	public double price;// 最新 价格
	public double tradecount;// 成交笔数
	public double amount;// 成交额
	public double volume;// 成交量
	public long time;// 时间

	public double high;//
	public double low;//
	public double open;//
	public double lastclose;// 前收盘

	public double getPercent()
	{
		return (price - lastclose) * 1.0 / lastclose;
	}

	public void print()
	{
		double percent = Math.round(getPercent() * 1000) / 10.0;
		System.out.println(Utils.msToLongStr(time) + "：" + name + " " + symbol);
		System.out.println("当前：" + price + "\t涨幅:" + percent);
		System.out.println("今开:" + open + "\t昨收：" + lastclose);
		System.out.println("最高:" + high + "\t最低：" + low);
		System.out.println("总量:" + volume / 100000000 + "亿手\t总额" + amount / 100000000 + "亿");
	}

}
